package com.cainiao.stock.controller.v1;

import com.cainiao.stock.api.StockTaskAPI;
import com.cainiao.stock.response.ResponseResult;
import com.cainiao.stock.service.StockTimerTaskService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockTaskController implements StockTaskAPI {
    @Autowired
    private StockTimerTaskService service;

    @Override
    public ResponseResult<?> getInnerMarketInfo() {
        service.getInnerMarketInfo();
        return ResponseResult.ok();
    }

    @Override
    public ResponseResult<?> getStockRtIndex() {
        service.getStockRtIndex();
        return ResponseResult.ok();
    }

    @Override
    public ResponseResult<?> getStockBlockInfo() {
        service.getStockBlockInfo();
        return ResponseResult.ok();
    }
}
